﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucProductCategory.ascx.cs"
    Inherits="SES.CMS.AdminCP.PageUC.ucProductCategory" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<%@ Register Assembly="DevExpress.Web.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dxpc" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
    <script type="text/javascript">
        function SelectAndClosePopup(value) {
            cbParent.SetValue(value);
            pcParent.Hide();
        }
</script>
<h2>
    <asp:Label runat="server" Text="" ID="lblAction"></asp:Label></h2>
<div>
    <table border="1px" width="100%">
        <tr>
            <td style="width:20%">
                Tên loại sản phẩm(*)
            </td>
            <td  style="width:80%">
                <asp:TextBox runat="server" Text="" Width="250px" ID="txtTenLSanPham"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*"
                    ForeColor="Red" ControlToValidate="txtTenLSanPham"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                Mã loại sản phẩm
            </td>
            <td class="tdContent">
                <asp:TextBox runat="server" Text="" Width="50px" ID="txtMaLoaiSanPham"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style8">
                Danh mục(*):
            </td>
            <td class="style9">
                <div style="float: left; vertical-align: middle;">
                    <dxe:ASPxComboBox ID="cboParent" ClientEnabled="false" ClientInstanceName="cbParent"
                        runat="server" Height="16px" Width="143px">
                    </dxe:ASPxComboBox>
                </div>
                <div style="float: left; margin-left: 5px; vertical-align: middle;">
                    <dxe:ASPxButton ID="btnSelectParent" runat="server" Text="Chọn">
                        <ClientSideEvents Click="function(s, e) { pcParent.Show();}" />
                    </dxe:ASPxButton>
                </div>
                <div style="float: left; margin-left: 5px; vertical-align: middle;">
                    <asp:CheckBox ID="chkIsTop" runat="server" Checked="true" />Danh mục cấp cao nhất</div>
            </td>
        </tr>
        <tr>
            <td class="tdTitle">
                Mô tả
            </td>
            <td class="tdContent">
                <asp:TextBox ID="txtMoTa" runat="server" Width="242px" TextMode="MultiLine" Height="50px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Số thứ tự
            </td>
            <td class="tdContent">
                <asp:TextBox runat="server" Width="50px" ID="txtOrderID" Text="0"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*"
                    ForeColor="Red" ControlToValidate="txtOrderID"></asp:RequiredFieldValidator>
                <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="Nhập số" ForeColor="Red"
                    ControlToValidate="txtOrderID" Type="Integer" MinimumValue="0" MaximumValue="500"></asp:RangeValidator>
            </td>
        </tr>
        <tr>
            <td>
                Thuộc menu trái trang chủ
            </td>
            <td>
                <asp:CheckBox runat="server" ID="cboIsLeftMenu" />
            </td>
        </tr>
    </table>
    <br />
    <asp:Button runat="server" ID="btnLuu" Text="Lưu" OnClick="btnLuu_Click" CssFilePath="~/App_Themes/SoftOrange/{0}/styles.css"
        CssPostfix="Soft_Orange" />
    <asp:Button runat="server" ID="btnHuy" Text="Hủy" OnClick="btnHuy_Click" CssFilePath="~/App_Themes/SoftOrange/{0}/styles.css"
        CssPostfix="Soft_Orange" />
</div>
<dxpc:ASPxPopupControl ID="pcParent" runat="server" ClientInstanceName="pcParent"
    CloseAction="CloseButton" ContentUrl="~/AdminCP/ListLoaiSanPham.aspx" HeaderText="Chọn danh mục mẹ"
    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" Height="336px"
    Width="699px">
    <ContentCollection>
        <dxpc:PopupControlContentControl ID="PopupControlContentControl1" runat="server">
        </dxpc:PopupControlContentControl>
    </ContentCollection>
</dxpc:ASPxPopupControl>
